package com.buddy.learn.spring.framework.webmvc.servlet;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

public class BHandlerMapping {
    private Object controllers;//保存方法对应的实例
    private Method method;//保存映射的方法；
    private Pattern pattern;//URL的正则匹配

    public BHandlerMapping( Pattern pattern, Object controllers, Method method) {
        this.controllers = controllers;
        this.method = method;
        this.pattern = pattern;
    }

    public Object getControllers() {
        return controllers;
    }

    public void setControllers(Object controllers) {
        this.controllers = controllers;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Pattern getPattern() {
        return pattern;
    }

    public void setPattern(Pattern pattern) {
        this.pattern = pattern;
    }
}
